package com.zetor.ms.core.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;

/**
 * 基础 Entity
 *
 * @Author zlc
 * @Date 2021/11/9
 */
public class BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * 操作人
     */
    @TableField(value = "operator_code", fill = FieldFill.INSERT_UPDATE)
    private String operatorCode = "s001";;
    /**
     * 操作人姓名
     */
    @TableField(value = "operator_name", fill = FieldFill.INSERT_UPDATE)
    private String operatorName = "seataTest";;
    /**
     * 操作时间
     */
    @TableField(value = "operator_time", fill = FieldFill.INSERT_UPDATE)
    private Date operatorTime = new Timestamp(System.currentTimeMillis());

    public String getOperatorCode() {
        return operatorCode;
    }

    public void setOperatorCode(String operatorCode) {
        this.operatorCode = operatorCode;
    }

    public String getOperatorName() {
        return operatorName;
    }

    public void setOperatorName(String operatorName) {
        this.operatorName = operatorName;
    }

    public Date getOperatorTime() {
        return operatorTime;
    }

    public void setOperatorTime(Date operatorTime) {
        this.operatorTime = operatorTime;
    }
}
